package com.ruoyi.houses.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.houses.mapper.AtbPropertyInformationMapper;
import com.ruoyi.houses.domain.AtbPropertyInformation;
import com.ruoyi.houses.service.IAtbPropertyInformationService;

/**
 * 物业信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-16
 */
@Service
public class AtbPropertyInformationServiceImpl implements IAtbPropertyInformationService 
{
    @Autowired
    private AtbPropertyInformationMapper atbPropertyInformationMapper;

    /**
     * 查询物业信息
     * 
     * @param id 物业信息主键
     * @return 物业信息
     */
    @Override
    public AtbPropertyInformation selectAtbPropertyInformationById(Long id)
    {
        return atbPropertyInformationMapper.selectAtbPropertyInformationById(id);
    }

    /**
     * 查询物业信息列表
     * 
     * @param atbPropertyInformation 物业信息
     * @return 物业信息
     */
    @Override
    public List<AtbPropertyInformation> selectAtbPropertyInformationList(AtbPropertyInformation atbPropertyInformation)
    {
        return atbPropertyInformationMapper.selectAtbPropertyInformationList(atbPropertyInformation);
    }

    /**
     * 新增物业信息
     * 
     * @param atbPropertyInformation 物业信息
     * @return 结果
     */
    @Override
    public int insertAtbPropertyInformation(AtbPropertyInformation atbPropertyInformation)
    {
        return atbPropertyInformationMapper.insertAtbPropertyInformation(atbPropertyInformation);
    }

    /**
     * 修改物业信息
     * 
     * @param atbPropertyInformation 物业信息
     * @return 结果
     */
    @Override
    public int updateAtbPropertyInformation(AtbPropertyInformation atbPropertyInformation)
    {
        return atbPropertyInformationMapper.updateAtbPropertyInformation(atbPropertyInformation);
    }

    /**
     * 批量删除物业信息
     * 
     * @param ids 需要删除的物业信息主键
     * @return 结果
     */
    @Override
    public int deleteAtbPropertyInformationByIds(Long[] ids)
    {
        return atbPropertyInformationMapper.deleteAtbPropertyInformationByIds(ids);
    }

    /**
     * 删除物业信息信息
     * 
     * @param id 物业信息主键
     * @return 结果
     */
    @Override
    public int deleteAtbPropertyInformationById(Long id)
    {
        return atbPropertyInformationMapper.deleteAtbPropertyInformationById(id);
    }
}
